import fetch from 'common/src/utils/fetch'
import baseUrl from './env'
// 过程评价
// 过程评价-学生管理列表
function getStudentProcessEvaPageList(data) {
    return fetch({
        url: `${baseUrl}/processStudent/getPageList`,
        method: 'post',
        data
    })
}
// 过程评价管理-学生列表编辑
function updateStudentProcessEva(data) {
    return fetch({
        url: `${baseUrl}/processStudent/update`,
        method: 'post',
        data
    })
}
// 过程评价管理-学生强制
function forceStudentProcessEva(data) {
    return fetch({
        url: `${baseUrl}/processStudent/force`,
        method: 'post',
        data
    })
}
// 过程评价管理-学生列表新增
function addStudentProcessEva(data) {
    return fetch({
        url: `${baseUrl}/processStudent/add`,
        method: 'post',
        data
    })
}
// 过程评价管理-学生列表删除
function deleteStudentProcessEva(data) {
    return fetch({
        url: `${baseUrl}/processStudent/delete`,
        method: 'post',
        data
    })
}
// 过程评价管理-学生列表删除
function judgeIfStudentProcessEvaWrite(data) {
    return fetch({
        url: `${baseUrl}/processStudent/delete/judge`,
        method: 'post',
        data
    })
}
// 过程评价管理-学生管理发布
function releaseStudentProcessEva(data) {
    return fetch({
        url: `${baseUrl}/processStudent/release/ok`,
        method: 'post',
        data
    })
}
// 过程评价管理-学生管理撤销
function withdrawStudentProcessEva(data) {
    return fetch({
        url: `${baseUrl}/processStudent/release/no`,
        method: 'post',
        data
    })
}
// 过程评价管理-学生对象查询
function getStudentProcessEvaObjectList(data) {
    return fetch({
        url: `${baseUrl}/processStudent/object/getPageList`,
        method: 'post',
        data
    })
}
// 过程评价管理-学生单个查询
function getStudentProcessEvaDetail(data) {
    return fetch({
        url: `${baseUrl}/processStudent/getOne`,
        method: 'post',
        data
    })
}
// 导出明细
function exportStuThemeDetailList(data) {
    return fetch({
        url: `${baseUrl}/processStudent/object/detailed/exportList`,
        method: 'post',
        data
    })
}
// 过程评价管理-导出
function exportStuProcess(data) {
    return fetch({
        url: `${baseUrl}/processStudent/exportList`,
        method: 'post',
        data
    })
}
// 过程评价管理-学生对象提交
function objectStudentProcessEvaSetConfirm(data) {
    return fetch({
        url: `${baseUrl}/processStudent/add/object`,
        method: 'post',
        data
    })
}
// 过程评价管理-学生对象删除
function objectStudentProcessEvaSetDelete(data) {
  return fetch({
      url: `${baseUrl}/processStudent/delete/object`,
      method: 'post',
      data
  })
}
// 学生主题导出
function exportStuProcessTheme(data) {
    return fetch({
        url: `${baseUrl}/processStudent/object/look/exportList`,
        method: 'post',
        data
    })
}
// 过程评价学生查看
function studentProcessReview(data) {
    return fetch({
        url: `${baseUrl}/questionnaireStudent/studentProcessReview`,
        method: 'post',
        data
    })
}

// 过程评价-老师管理列表
function getTeacherProcessEvaPageList(data) {
    return fetch({
        url: `${baseUrl}/processTeacher/getPageList`,
        method: 'post',
        data
    })
}
// 过程评价管理-老师列表编辑
function updateTeacherProcessEva(data) {
    return fetch({
        url: `${baseUrl}/processTeacher/update`,
        method: 'post',
        data
    })
}
// 过程评价管理-老师强制
function forceTeacherProcessEva(data) {
    return fetch({
        url: `${baseUrl}/processTeacher/force`,
        method: 'post',
        data
    })
}
// 过程评价管理-老师列表新增
function addTeacherProcessEva(data) {
    return fetch({
        url: `${baseUrl}/processTeacher/add`,
        method: 'post',
        data
    })
}
// 过程评价管理-老师列表删除
function deleteTeacherProcessEva(data) {
    return fetch({
        url: `${baseUrl}/processTeacher/delete`,
        method: 'post',
        data
    })
}
// 过程评价管理-老师列表删除
function judgeIfTeacherProcessEvaWrite(data) {
    return fetch({
        url: `${baseUrl}/processTeacher/delete/judge`,
        method: 'post',
        data
    })
}
// 过程评价管理-老师管理发布
function releaseTeacherProcessEva(data) {
    return fetch({
        url: `${baseUrl}/processTeacher/release/ok`,
        method: 'post',
        data
    })
}
// 过程评价管理-老师管理撤销
function withdrawTeacherProcessEva(data) {
    return fetch({
        url: `${baseUrl}/processTeacher/release/no`,
        method: 'post',
        data
    })
}
// 过程评价管理-老师对象查询
function getTeacherProcessEvaObjectList(data) {
    return fetch({
        url: `${baseUrl}/processTeacher/object/getPageList`,
        method: 'post',
        data
    })
}
// 过程评价管理-老师单个查询
function getTeacherProcessEvaDetail(data) {
    return fetch({
        url: `${baseUrl}/processTeacher/getOne`,
        method: 'post',
        data
    })
}
// 导出明细
function exportTeacherThemeDetailList(data) {
    return fetch({
        url: `${baseUrl}/processTeacher/object/detailed/exportList`,
        method: 'post',
        data
    })
}
// 过程评价管理-导出
function exportTeacherProcess(data) {
    return fetch({
        url: `${baseUrl}/processTeacher/exportList`,
        method: 'post',
        data
    })
}
// 过程评价管理-老师对象提交
function objectTeacherProcessEvaSetConfirm(data) {
    return fetch({
        url: `${baseUrl}/processTeacher/add/object`,
        method: 'post',
        data
    })
}
// 过程评价管理-老师对象删除
function objectTeacherProcessEvaSetDelete(data) {
  return fetch({
      url: `${baseUrl}/processTeacher/delete/object`,
      method: 'post',
      data
  })
}
// 教师主题导出
function exportTeacherProcessTheme(data) {
    return fetch({
        url: `${baseUrl}/processTeacher/object/look/exportList`,
        method: 'post',
        data
    })
}
// 过程评价老师查看
function teacherProcessReview(data) {
    return fetch({
        url: `${baseUrl}/questionnaireTeacher/teacherProcessReview`,
        method: 'post',
        data
    })
}
const processEvaluationApi = {
    getStudentProcessEvaPageList,
    updateStudentProcessEva,
    forceStudentProcessEva,
    addStudentProcessEva,
    deleteStudentProcessEva,
    judgeIfStudentProcessEvaWrite,
    releaseStudentProcessEva,
    withdrawStudentProcessEva,
    getStudentProcessEvaObjectList,
    getStudentProcessEvaDetail,
    exportStuThemeDetailList,
    exportStuProcess,
    objectStudentProcessEvaSetConfirm,
    objectStudentProcessEvaSetDelete,
    exportStuProcessTheme,
    studentProcessReview,

    getTeacherProcessEvaPageList,
    updateTeacherProcessEva,
    forceTeacherProcessEva,
    addTeacherProcessEva,
    deleteTeacherProcessEva,
    judgeIfTeacherProcessEvaWrite,
    releaseTeacherProcessEva,
    withdrawTeacherProcessEva,
    getTeacherProcessEvaObjectList,
    getTeacherProcessEvaDetail,
    exportTeacherThemeDetailList,
    exportTeacherProcess,
    objectTeacherProcessEvaSetConfirm,
    objectTeacherProcessEvaSetDelete,
    exportTeacherProcessTheme,
    teacherProcessReview
}
export default processEvaluationApi
